﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FlashPay.Service.Interface
{
    using FlashPay.Entity;
    using FlashPay.Entity.Request.PaymentInterface;

    /// <summary>
    /// 第三方接口接口
    /// </summary>
    public interface PaymentInterfaceService
    {
        /// <summary>
        /// 根据编号付款接口
        /// </summary>
        PaymentInterfaceReponse GetByPaymentInterface(int paymentInterfaceId, int companyId, List<string> userPermission);

        /// <summary>
        /// 新增或更新付款接口
        /// </summary>
        /// <param name="CardMerchant">修改对象</param>
        /// <returns></returns>
        JResult PaymentInterfaceAddOrUpdate(PaymentInterfaceAddOrEditRequest request);

        /// <summary>
        /// 增加、减少余额
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        JResult PaymentInterfaceBalance(PaymentInterfaceBalanceRequest request);
    }
}
